﻿<Page
    x:Name="pageRoot"
    x:Class="Microsoft.Media.CaptureClient.Sample.PlayerPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Microsoft.Media.CaptureClient.Sample"
    xmlns:common="using:Microsoft.Media.CaptureClient.Sample.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:mmppf="using:Microsoft.PlayerFramework"
    xmlns:adaptive="using:Microsoft.PlayerFramework.Adaptive"
    mc:Ignorable="d">

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid Margin="10,10,10,10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="Preview URL: " VerticalAlignment="Top" Margin="0,0,10,0" Style="{ThemeResource SubtitleTextBlockStyle}"/>
            <TextBox Grid.Column="1" x:Name="textPreview" AutomationProperties.Name="Preview URL" Text="{Binding PreviewUrl, Mode=TwoWay}"/>
        </Grid>
        <mmppf:MediaPlayer x:Name="mediaPlayer" IsResolutionIndicatorVisible="True" IsSignalStrengthVisible="True" Source="http://channel-name.account-name.channel.mediaservices.windows.net/preview.isml/manifest" MediaLoading="mediaPlayer_MediaLoading" Visibility="Visible" AutoLoad="False" Grid.Row="1"/>
    </Grid>
</Page>
